package com.itsu.admin.exception;

/**
 * @author Jerry.su
 * @Date 2022/1/2 15:48
 */
public class BizException extends RuntimeException {

    private int code;

    public BizException(int code) {
        this.code = code;
    }

    public BizException(String message, int code) {
        super(message);
        this.code = code;
    }

    public BizException(String message, Throwable cause, int code) {
        super(message, cause);
        this.code = code;
    }

    public BizException(Throwable cause, int code) {
        super(cause);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
